.class Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;
.super Ljava/lang/Object;
.source "MusicPickerActivity.java"

# interfaces
.implements Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->v()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPageScrollStateChanged(I)V
    .locals 0

    return-void
.end method

.method public onPageScrolled(IFI)V
    .locals 0

    return-void
.end method

.method public onPageSelected(I)V
    .locals 4

    const/4 v0, 0x2

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-ne p1, v2, :cond_2

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    const-string v3, "online"

    invoke-static {p1, v3}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->a(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->a(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    move-result-object p1

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->i()V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->d(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Landroid/util/SparseArray;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    if-nez p1, :cond_0

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->d(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Landroid/util/SparseArray;

    move-result-object p1

    new-array v0, v0, [Ljava/lang/Integer;

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    .line 5
    invoke-static {v3}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->e(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v0, v1

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {v3}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->f(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v0, v2

    .line 6
    invoke-virtual {p1, v1, v0}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 7
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->d(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Landroid/util/SparseArray;

    move-result-object p1

    invoke-virtual {p1, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, [Ljava/lang/Integer;

    if-eqz p1, :cond_1

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->a(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;->f()Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;

    move-result-object v0

    aget-object v1, p1, v1

    .line 9
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    aget-object p1, p1, v2

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    invoke-virtual {v0, v1, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;->b(II)V

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->d(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Landroid/util/SparseArray;

    move-result-object p1

    invoke-virtual {p1, v2}, Landroid/util/SparseArray;->remove(I)V

    .line 11
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    const-string v0, "online_music"

    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->c(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    if-nez p1, :cond_5

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    const-string v3, "local"

    invoke-static {p1, v3}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->a(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 13
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->g(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;

    move-result-object p1

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->j()V

    .line 14
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->d(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Landroid/util/SparseArray;

    move-result-object p1

    invoke-virtual {p1, v2}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    if-nez p1, :cond_3

    .line 15
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->d(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Landroid/util/SparseArray;

    move-result-object p1

    new-array v0, v0, [Ljava/lang/Integer;

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    .line 16
    invoke-static {v3}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->e(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v0, v1

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {v3}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->f(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v0, v2

    .line 17
    invoke-virtual {p1, v2, v0}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 18
    :cond_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->d(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Landroid/util/SparseArray;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, [Ljava/lang/Integer;

    if-eqz p1, :cond_4

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->g(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment;->g()Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;

    move-result-object v0

    aget-object v3, p1, v1

    .line 20
    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    aget-object p1, p1, v2

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    invoke-virtual {v0, v3, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/LocalMusicFragment$LocalMusicAdapter;->b(II)V

    .line 21
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->d(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Landroid/util/SparseArray;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/util/SparseArray;->remove(I)V

    .line 22
    :cond_4
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    const-string v0, "local_music"

    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->c(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;Ljava/lang/String;)V

    .line 23
    :cond_5
    :goto_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity$a;->a:Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;->h(Lcom/esfile/screen/recorder/picture/picker/MusicPickerActivity;)Lcom/esfile/screen/recorder/picture/picker/widget/AudioPlayer;

    move-result-object p1

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/widget/AudioPlayer;->b()V

    return-void
.end method
